< previous page page_323 next page >

Page 323
From this toolbar, you can run, stop, and pause your application. You can also perform other functions related to debugging your application. From left to right, the tools on the Debug toolbar are as follows:
Run the project
Pause the project
Stop the project
Toggle breakpoints
Step into procedure
Step over procedure
Step out of procedure
Locals window
Immediate window
Quick watch window
Call Stack Window
Youll learn more about each of these tools in this chapter.
Invoking the Debugger
To begin your application using the debugger, select Debug, Step Into or Debug, Step Over The Step Into option shows you each line of source code as it runs. This is great when you need to see each line as it executes, test different variables, or even change lines of code.
The Step Over option allows you to run an entire procedure without stepping into that procedure. This is useful when you know a function works, but you dont want to spend the time stepping through it. When you use this option, it executes the procedure and then places you back in break mode immediately after the call to that procedure.
You can invoke the debugger and enter break mode in several ways:
By pressing Ctrl+Break at runtime
By placing a Stop statement in your code

 
< previous page page_323 next page >

If you like this book, buy it!